<!DOCTYPE html>
<html>
<head>
  <title>XIGUASHE admin</title>
  <!-- stylesheet_link_tag    "bootstrap" -->
  <%= stylesheet_link_tag 'admin'%>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
</head>
<body>
<header>
	<div class="navbar">

	    <div class="navbar-inner">
		    <div class="container">

		    	<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
				<a class="brand" href="#">西瓜社</a>
				<div class="nav-collapse">
			    	<ul class="nav">
			    		<li>
			    			<%= link_to '分类', cpanel_categories_path %>
			    		</li>
					    <li>
					    	<%= link_to '小组', cpanel_groups_path %>
					    </li>
					    <li><%= link_to '话题', cpanel_topics_path %></li>
							<li><%= link_to '商品', cpanel_products_path %></li>
							<li><%= link_to '评论', cpanel_comments_path %></li>
					    <li><%= link_to '用户', cpanel_users_path %></li>
              <li><%= link_to '活动', cpanel_activities_path %></li>
				    </ul>

				    <ul class="nav pull-right" >
					    <li class="dropdown">
					    	<a href="#" class="dropdown-toggle" data-toggle="dropdown">
						    	<%= current_user.nickname %>
						    	<b class="caret"></b>
					    	</a>
					    	<ul class="dropdown-menu">
					    		<li><%= link_to '返回前台', root_path %></li>
					    	</ul>
					    </li>
				    </ul>
				    <script type="text/javascript">
				$(function(){
					$('.dropdown-toggle').dropdown()
				})
				</script>
				</div>
		    </div>
	    </div>
    </div>
</header>

<div class="container">

	

	<%= yield %>
</div>

</body>
</html>
